package com.jumper.study.admin.dto.req;

import java.util.List;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;

public class RoleReq {
    @NotBlank(message="未填写角色名称")
    private String title;

    @NotEmpty(message="未选择权限菜单")
    private List<Integer> menus;

    public RoleReq() {
    }

    public RoleReq(String title, List<Integer> menus) {
        this.title = title;
        this.menus = menus;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<Integer> getMenus() {
        return menus;
    }

    public void setMenus(List<Integer> menus) {
        this.menus = menus;
    }

    
}
